﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tuwen_shucai_categorylist.aspx.cs" Inherits="MxWeiXinPF.Web.admin.crm.tuwen_shucai_categorylist" %>

<%@ Import Namespace="MxWeiXinPF.Common" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
    <title>素材图文组</title>
     
<%=PageJSAndStype("list").ToString() %>

    <script type="text/javascript">
        $(function () {
            //创建图文的窗口 
            $("#aLookIndex").click(function () {
                console.log("begin");
                var contenturl = "url:templates/showPhone.aspx";
                var m = $.dialog({
                    id: 'dialogGuiZe',
                    fixed: true,
                    lock: true,
                    max: false,
                    min: false,
                    title: "查看模版效果",
                    content: contenturl,
                    height: 600,
                    width: 360,
                    close: function () {

                    }
                });
                console.log("end");
            })
        })

    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
       
         <div class="mytips">
          图文素材的分组只是为了本系统管理方便，在群发中没有实际作用。
           </div>
        <!--工具栏-->
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"></a>
                <div class="l-list">
                    <ul class="icon-list">
                        <li><a class="add" href="tuwen_shucai_categoryedit.aspx?action=<%=MXEnums.ActionEnum.Add %>&channel_id=<%=this.channel_id %>"><i  class="iconfont icon-close"></i><span>新增分类</span></a></li>
                        <li>
                            <asp:LinkButton ID="btnSave" runat="server" CssClass="save" OnClick="btnSave_Click"><i  class="iconfont icon-save"></i><span>保存</span></asp:LinkButton></li>
                        <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i  class="iconfont icon-check"></i><span>全选</span></a></li>
                        <li>
                            <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete','本操作会删除本类别，是否继续？');" OnClick="btnDelete_Click"><i class="iconfont icon-delete"></i><span>删除</span></asp:LinkButton></li>
                    </ul>
                </div>
                 <div class="r-list">
                    <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click"><i class="iconfont icon-search"></i></asp:LinkButton>
                    
                </div>

            </div>
        </div>
     </div>
        <!--/工具栏-->

        <!--列表-->
        <asp:Repeater ID="rptList" runat="server"  >
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>
                        <th width="6%" align="center">选择</th>
                        <th align="center" width="10%">编号</th>
                        <th align="center"  >分类名称</th>
                        <th align="center" width="10%">排序</th>
                        <th align="center"  width="20%">操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                        <asp:HiddenField ID="hidLayer" Value='<%#Eval("class_layer") %>' runat="server" />
                    </td>
                    <td align="center"><%#Eval("id")%></td>
                    <td align="center">
                        
                       <a href="tuwen_shucai_list.aspx?id=<%#Eval("id")%>"><%#Eval("title")%></a>
                    </td>
                    
                    <td align="center">
                        <asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort_id")%>' CssClass="sort" onkeydown="return checkNumber(event);" /></td>
                    <td align="center">
                        
                        <a href="tuwen_shucai_categoryedit.aspx?action=<%#MXEnums.ActionEnum.Edit %>&channel_id=<%#this.channel_id %>&id=<%#Eval("id")%>">修改</a>

                         <a href="tuwen_shucai_list.aspx?id=<%#Eval("id")%>">文章管理</a>

                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"5\">暂无记录</td></tr>" : ""%>
</table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/列表-->


         
           <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->

    </form>
</body>
</html>